package top.xizai.wrr;

import top.xizai.wrr.wrr.IWrr;
import top.xizai.wrr.wrr.impl.WrrSmooth;

/**
 * @NAME: WSC
 * @DATE: 2021/12/27
 * @DESCRIBE:
 **/
public class Main {
    public static void main(String[] args) {
        Element[] elements = new Element[]{
                new Element("A", 7),
                new Element("B", 2),
                new Element("C", 1),
        };

        IWrr wrr = null;

        // wrr = new WrrRnd(elements);
        // wrr = new WrrIncrement(elements);
        wrr = new WrrSmooth(elements);

        for (int i = 0; i < 10; i++) {
            System.out.println(wrr.next());
        }
    }
}
